package cn.wujiangbo.lock;

/**
 * @description: 分布式锁接口
 * @auth: wujiangbo
 * @date: 2022-04-08 10:25
 */
public interface LockInterface {

    //加锁
    void lock(String resourceName);

    //释放锁
    void unlock(String resourceName);

    //尝试获取锁
    boolean tryLock(String resourceName);
}